const filters ={
  //时间格式化
  datefmt:(date) =>{
    var input = new Date(date);
    if(!input){
      return '';
    }else{
      var res = '';
      var year = input.getFullYear();
      var month = input.getMonth() + 1;
      var day = input.getDate();
      res = year + '-' + month + '-' + day;
      return res;
    }
  }
}

export default filters;
